SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 56676: PROC MODEL might terminate abnormally when the RESTRICT statement and the OPTIMIZE option in the SOLVE statement are specified

DetailsAboutRate It

PROC MODEL might generate error messages when all of the following conditions are met:


  • Constraints are imposed by a RESTRICT statement.
  • The OPTIMIZE option is specified in a SOLVE statement.
  • The model equation contains the MOVEAVGn( x ) function.

Possible messages are:

ERROR: An exception has been encountered. Please contact technical support and provide them with the following traceback information: The SAS task name is [MODEL] Exception occurred at (0C4A8C94) Task Traceback ERROR: Read Access Violation MODEL

If the expression in the RESTRICT statement can also be specified using the BOUNDS statement, then you can circumvent the problem by replacing the RESTRICT statement with the BOUNDS statement. If it is not possible to use a BOUNDS statement, the problem can be avoided by using the LAGn( < i,> x ) function or the ZLAGn( < i,> x ) function instead of the MOVAVGn( x ) function in the model equation.

For example, the MOVAVGn( x ) function is used in the model below:

data d; y = 1; do date = 1 to 5; y = 0.9*y; output; end; run; proc model data=d; endo y; y = phi*movavg4(y); solve phi / out=om; quit;

The same model can be expressed using the ZLAGn( < i,> x ) as follows:

proc model data=d print; endo y; tot = 0; cnt = min(_obs_-1,3); do i = 1 to cnt; tot = tot + zlag4(i,y); end; y = phi*1/(cnt+1)*(y + tot); solve phi / out=ov; quit;


Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS/ETSz/OS12.114.39.3 TS1M29.4 TS1M5
Microsoft® Windows® for x6412.114.39.3 TS1M29.4 TS1M5
Microsoft Windows 8 Enterprise 32-bit12.114.39.3 TS1M29.4 TS1M5
Microsoft Windows 8 Enterprise x6412.114.39.3 TS1M29.4 TS1M5
Microsoft Windows 8 Pro 32-bit12.114.39.3 TS1M29.4 TS1M5
Microsoft Windows 8 Pro x6412.114.39.3 TS1M29.4 TS1M5
Microsoft Windows 8.1 Enterprise 32-bit12.114.39.3 TS1M29.4 TS1M5
Microsoft Windows 8.1 Enterprise x6412.114.39.3 TS1M29.4 TS1M5
Microsoft Windows 8.1 Pro12.114.39.3 TS1M29.4 TS1M5
Microsoft Windows 8.1 Pro 32-bit12.114.39.3 TS1M29.4 TS1M5
Microsoft Windows Server 2003 Datacenter Edition12.19.3 TS1M2
Microsoft Windows Server 2003 Enterprise Edition12.19.3 TS1M2
Microsoft Windows Server 2003 Standard Edition12.19.3 TS1M2
Microsoft Windows Server 2003 for x6412.19.3 TS1M2
Microsoft Windows Server 200812.114.39.3 TS1M29.4 TS1M5
Microsoft Windows Server 2008 R212.114.39.3 TS1M29.4 TS1M5
Microsoft Windows Server 2008 for x6412.114.39.3 TS1M29.4 TS1M5
Microsoft Windows Server 2012 Datacenter12.114.39.3 TS1M29.4 TS1M5
Microsoft Windows Server 2012 R2 Datacenter12.114.39.3 TS1M29.4 TS1M5
Microsoft Windows Server 2012 R2 Std12.114.39.3 TS1M29.4 TS1M5
Microsoft Windows Server 2012 Std12.114.39.3 TS1M29.4 TS1M5
Microsoft Windows XP Professional12.19.3 TS1M2
Windows 7 Enterprise 32 bit12.114.39.3 TS1M29.4 TS1M5
Windows 7 Enterprise x6412.114.39.3 TS1M29.4 TS1M5
Windows 7 Home Premium 32 bit12.114.39.3 TS1M29.4 TS1M5
Windows 7 Home Premium x6412.114.39.3 TS1M29.4 TS1M5
Windows 7 Professional 32 bit12.114.39.3 TS1M29.4 TS1M5
Windows 7 Professional x6412.114.39.3 TS1M29.4 TS1M5
Windows 7 Ultimate 32 bit12.114.39.3 TS1M29.4 TS1M5
Windows 7 Ultimate x6412.114.39.3 TS1M29.4 TS1M5
Windows Vista12.19.3 TS1M2
Windows Vista for x6412.19.3 TS1M2
64-bit Enabled AIX12.114.39.3 TS1M29.4 TS1M5
64-bit Enabled HP-UX12.114.39.3 TS1M29.4 TS1M5
64-bit Enabled Solaris12.114.39.3 TS1M29.4 TS1M5
HP-UX IPF12.114.39.3 TS1M29.4 TS1M5
Linux12.114.39.3 TS1M29.4 TS1M5
Linux for x6412.114.39.3 TS1M29.4 TS1M5
Solaris for x6412.114.39.3 TS1M29.4 TS1M5
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.